<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<link rel="stylesheet" href="../../compute/static/layui-v2.6.8/layui/css/layui.css">
<script src="../../compute/static/layui-v2.6.8/layui/layui.js"></script>
<body>
  <div style="color: #fff; padding: 10px 10px; font-size: 30px">Nodes</div>
<!--  表名-->
<div style="padding: 0px 20px 0px 20px">
  <div class="layui-fluid" style="padding: 0px">

    <div class="layui-row" style="background: #1F4661">
      <div class="layui-col-md3" style="padding: 8px 0px 8px 28px">
        <div class= "layui-font-16" style="color: #fff">
          名称
        </div>
      </div>
      <div class="layui-col-md2" style="padding: 8px 0px 8px 8px">
        <div class= "layui-font-16" style="color: #fff">
          InternalIP
        </div>
      </div>
      <div class="layui-col-md1" style="padding: 8px 0px 8px 8px">
        <div class= "layui-font-16" style="color: #fff">
          状态
        </div>
      </div>
      <div class="layui-col-md3" style="padding: 8px 0px 8px 8px">
        <div class= "layui-font-16" style="color: #fff">
          角色
        </div>
      </div>
      <div class="layui-col-md1" style="padding: 8px 0px 8px 8px">
        <div class= "layui-font-16" style="color: #fff">
          CPU用量
        </div>
      </div>
      <div class="layui-col-md1" style="padding: 8px 0px 8px 8px">
        <div class= "layui-font-16" style="color: #fff">
          内存用量
        </div>
      </div>
      <div class="layui-col-md1" style="padding: 8px 0px 8px 8px">
        <div class= "layui-font-16" style="color: #fff">
          查看yaml
        </div>
      </div>
    </div>
    <div style="border: 2px solid rgba(1, 227, 243, 0.822)"></div>
    {% for post in posts %}
    <div class="layui-fluid" style="padding: 0px">
      <div class="layui-row" style="background: #1a1a1e">
        <div class="layui-col-md3" style="padding: 8px 0px 8px 28px">
          <div class= "layui-font-16" >
            <a href="{{ url_for('k8s-show.nodeInfo', name=post['name']) }}" style="color: #fff">
              {{ post['name'] }}
          </a>
            
          </div>
        </div>
        <div class="layui-col-md2" style="padding: 8px 0px 8px 8px">
          <div class= "layui-font-16" style="color: #fff">
            {{ post['ip'] }}
          </div>
        </div>
        <div class="layui-col-md1" style="padding: 8px 0px 8px 8px">
          <div class= "layui-font-16" style="color: #fff">
            {{ post['status'] }}
          </div>
        </div>
        <div class="layui-col-md3" style="padding: 8px 0px 8px 8px">
          <div class= "layui-font-16" style="color: #fff">
            {{ post['role'] }}
          </div>
        </div>
        <div class="layui-col-md1" style="padding: 8px 0px 8px 8px">
          <div class= "layui-font-16" style="color: #fff">
            {{ post['cpu'] }}
          </div>
        </div>
        <div class="layui-col-md1" style="padding: 8px 0px 8px 8px">
          <div class= "layui-font-16" style="color: #fff">
            {{ post['memory'] }}
          </div>
        </div>
        <div class="layui-col-md1" style="padding: 8px 0px 8px 8px">
          <div class= "layui-font-16" style="color: #fff">
            <a href="{{ url_for('k8s-show.node_yaml_new', name=post['name']) }}"><i class="layui-icon layui-icon-file" style="font-size: large; color: white;" ></i></a>
          </div>
        </div>
      </div>
      <div style="border: 0.5px solid silver"></div>
    </div>
    {% endfor %}
  
  </div>

</div>
</body>
</html>